﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VSFuncionario.Master" AutoEventWireup="true" CodeBehind="FuncionarioCadastro.aspx.cs" Inherits="Presentation.FuncionarioCadastro" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 310px;
        }
        .style6
        {
            width: 182px;
        }
        .style7
        {
            width: 182px;
            height: 28px;
        }
        .style8
        {
            width: 310px;
            height: 28px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="height: 56px; width: 624px">
        <tr>
            <td class="style6">Nome</td>
            <td class="style3">
                <asp:TextBox ID="txtNome" runat="server" Height="24px" Width="250px" 
                    MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style6">CPF</td>
            <td class="style3">
                <asp:TextBox ID="txtCPF" runat="server" Height="24px" Width="250px" 
                    MaxLength="11"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtCPF_MaskedEditExtender" runat="server" 
                    AutoComplete="False" Mask="999,999,999-99" TargetControlID="txtCPF">
                </asp:MaskedEditExtender>
            </td>
        </tr>
        <tr>
            <td class="style6">Nascimento</td>
            <td class="style3">
                
                <asp:TextBox ID="txtNascimento" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="TextBox1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtNascimento">
                </asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td class="style6">Email (Login)</td>
            <td class="style3">
                <asp:TextBox ID="txtEmail" runat="server" Height="24px" Width="250px" 
                    MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style7">Senha</td>
            <td class="style8">
                <asp:TextBox ID="txtSenha" runat="server" ViewStateMode="Enabled" Enabled="true" Height="24px" Width="250px" 
                    MaxLength="50" TextMode="Password"></asp:TextBox>
            </td>
        </tr>   
        <tr>
            <td class="style7">Digite a senha novamente:</td>
            <td class="style8">
                <asp:TextBox ID="txtSenha2" runat="server" TextMode="Password" Height="24px" 
                    Width="250px" MaxLength="10"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtSenha" ControlToValidate="txtSenha2" 
                    ErrorMessage="Senha não confere" ForeColor="Red" SetFocusOnError="True"></asp:CompareValidator>
                <asp:AnimationExtender ID="CompareValidator1_AnimationExtender" runat="server" 
                    Enabled="True" TargetControlID="CompareValidator1" ViewStateMode="Enabled">
                </asp:AnimationExtender>
            </td>
        </tr>   
        <tr>
            <td class="style6">Telefone</td>
            <td class="style3">
                <asp:TextBox ID="txtTelefone" runat="server" Height="24px" Width="250px" 
                    MaxLength="10"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" 
                    Mask="(99)9999-9999" TargetControlID="txtTelefone">
                </asp:MaskedEditExtender>
            </td>
        </tr>
        <tr>
            <td class="style6">Celular</td>
            <td class="style3">
                <asp:TextBox ID="txtCelular" runat="server" Height="24px" Width="250px" 
                    MaxLength="10"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtCelular_MaskedEditExtender" runat="server" 
                    Mask="(99)9999-9999" TargetControlID="txtCelular">
                </asp:MaskedEditExtender>
            </td>
        </tr>
        <tr>
            <td class="style6">
                Tipo de Funcionário</td>
            <td class="style3">
                <asp:DropDownList ID="ddlTipoFuncionario" runat="server" 
                    DataSourceID="EntityDataSource1" DataTextField="descricao" DataValueField="id" 
                    Height="26px" Width="247px">
                </asp:DropDownList>
                <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                    ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                    EnableFlattening="False" EntitySetName="TBTipoFuncionarios" 
                    EntityTypeFilter="TBTipoFuncionario">
                </asp:EntityDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6">Ativo?</td>
            <td class="style3">
                <asp:CheckBox ID="chkAtivo" runat="server" Checked="True" /></td>
        </tr>
        <tr>
            <td class="style6"></td>
            <td class="style3">
                <asp:Button ID="btnFuncionarioSubmit" runat="server" Text="Salvar" 
                    onclick="btnFuncionarioSubmit_Click" />
            </td>
        </tr>
    </table>
&nbsp;
<asp:ScriptManager ID="ScriptManager1" runat="server" 
        EnableScriptGlobalization="True">
</asp:ScriptManager>
</asp:Content>
